package com.codingman.springbootmybatisdemo1;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EmployeeDao {
	@Autowired
	private SqlSession sqlSession;
	
	public Employee getEmployeeById(Integer id) {
		return this.sqlSession.selectOne("getEmployeeById", id);
	}
}
